<?php
 /***************************************************************************
 *                                php5_define.php
 *
 *   Begin date           	: Wednesday, Aug 3, 2005
 *   Copyright            	: (C) 2005 K&G Software Company
 *   Email                	: sales@php5-vn.com
 ***************************************************************************/

defined('PHP5_PHP') or die("Application is stopping!!!");

//Define project url
define( '_PHP5_NOTRIM', 0x0001 );
define( '_PHP5_ALLOWHTML', 0x0002 );
define( '_PHP5_ALLOWRAW', 0x0004 );

// Page
define( '_PHP5_MAXRECORD', 10);

define('ADMIN_IDS', "1");

//user permission
define('PER_USER', 0);
define('PER_ADMIN', 1);
define('PER_MAGEZINE', 2);
define('PER_RADIO', 4);
define('PER_ADV', 8);
define('PER_EXHIBITION', 16);
define('PER_OH', 32);
define('PER_INTERNET', 64);
define('PER_EVENT', 128);
define('PER_THC', 256);
define('PER_BLOG', 512);
define('PER_CHILD', 1024);
define('PER_OTHER', 2048);
//error infor
define('php5ConfigConnectError',1);

define('php5ConfigSendMail', '/usr/sbin/sendmail');
define('php5ConfigCharset',"utf-8");
define('php5ConfigMailer', "mail");

define('php5ConfigSMTPAuth', "0");
define('php5ConfigSMTPUser', "");
define('php5ConfigSMTPPass', "");
define('php5ConfigSMTPHost', "");
define('KEY_API_HUMMING', 'e23e6678e0d32f25d5a29c344b505250ae15fd3e');
//user permission
define('php5ConfigUser', 0);
define('php5ConfigAdmin', 1);

//paging
define('php5ConfigMaxRecords', 10);
define('php5ConfigPageTotal', 1);
define('php5ConfigBeginPage', 1);

//Resume activity
define('php5ConfigActivitySendEmail', 1);
define('php5ConfigActivityApplyForAJob', 2);

$url_schemes = 'data:, file:, ftp:, gopher:, imap:, ldap:, mailto:, news:, nntp:, telnet:, javascript:, irc:, mms:';
define( '_URL_SCHEMES', $url_schemes );
define( 'RG_EMULATION', 1 );
//File download 
define('MAX_SIZE_FILE_DOWNLOAD', 1024*500);
define('ERROR_REGISTER','Thông báo lỗi. Vui lòng đăng ký lại. Xin cám ơn!');
$type['NA'] = '---- All Residential ----';
$type[1]='Apartment/Flat';
$type[2]='Condo/Serviced Residence';
$type[3]='Terrace/Link/Townhouse';
$type[4]='Semi-D/Bungalow';
$type[5]='Residential Land';
$type['NA1']='---- All Commercial ----';
$type[6]='Shop/Office/Retail Space';
$type[7]='Hotel/Resort';
$type[8]='Commercial Land';
$type['NA2']='---- All Industrial ----';
$type[9]='Factory/Warehouse';
$type[10]='Industrial Land';
$type['NA3']='---- All Agricultural ----';
$type[11]='Agricultural Land';

$type_list['NA'] = '---- All Residential ----';
$type_list[1]='Apartment/Flat';
$type_list[2]='Condo/Serviced Residence';
$type_list[3]='Terrace/Link/Townhouse';
$type_list[4]='Semi-D/Bungalow';
$type_list[5]='Residential Land';
$type_list['NA1']='---- All Commercial ----';
$type_list[6]='Shop/Office/Retail Space';
$type_list[7]='Hotel/Resort';
$type_list[8]='Commercial Land';
$type_list['NA2']='---- All Industrial ----';
$type_list[9]='Factory/Warehouse';
$type_list[10]='Industrial Land';
$type_list['NA3']='---- All Agricultural ----';
$type_list[11]='Agricultural Land';

$state_list = array(1=>'Kuala Lumpur',
				  'Johor',
				  'Kedah',
				  'Kelantan',
				  'Melaka',
				  'Negeri Sembilan',
				  'Other',
				  'Pahang',
				  'Penang',
				  'Perak',
				  'Perlis',
				  'Putrajaya',
				  'Sabah',
				  'Sarawak',
				  'Selangor',
				  'Terengganu');
$area_list = array(1=>array('All Areas','Ampang', 'Bandar Menjalara', 'Bandar Tasik Selatan', 'Bangsar', 'Bangsar South', 'Batu','Brickfields','Bukit Bintang', 'Bukit Jalil', 'Bukit Ledang', 'Cheras', 'City Centre', 'Country Heights', 'Country Heights Damansara', 'Damansara', 'Damansara Heights', 'Desa Pandan', 'Desa ParkCity', 'Desa Petaling', 'Gombak', 'Jalan Ipoh', 'Jalan Klang Lama', 'Jalan Kuching', 'Jalan Sultan Ismail', 'Jinjang', 'Kenny Hills', 'Kepong', 'Keramat', 'KL City', 'KL Sentral', 'KLCC', 'Kuchai Lama', 'Mid Valley City', 'Mont Kiara', 'Old Klang Road', 'OUG', 'Pandan Indah', 'Pandan Jaya', 'Pantai', 'Pekan Batu', 'Puchong', 'Salak Selatan', 'Segambut', 'Sentul', 'Seputeh', 'Serdang', 'Setapak', 'Setia Eco Park', 'Solaris Dutamas', 'Sri Damansara', 'Sri Hartamas', 'Sri Petaling', 'Sungai Besi', 'Sungai Penchala', 'Taman Desa', 'Taman Duta', 'Taman Melawati', 'Taman Tun Dr Ismail', 'TPM', 'Wangsa Maju'),
			array('All Areas', 'Ayer Baloi', 'Ayer Hitam', 'Bakri', 'Batu Anam', 'Batu Pahat', 'Bekok', 'Benut', 'Bukit Gambir', 'Bukit Pasir', 'Chaah', 'Endau', 'Gelang Patah', 'Gerisek', 'Gugusan Taib Andak', 'Jementah', 'Johor Bahru', 'Kahang', 'Kampung Kenangan Tun Dr Ismail', 'Kluang', 'Kota Tinggi', 'Kukup', 'Kulai', 'Labis', 'Layang Layang', 'Masai', 'Mersing', 'Muar', 'Pagoh', 'Panchor', 'Parit Jawa', 'Parit Raja', 'Parit Sulong', 'Pasir Gudang', 'Pekan Nanas', 'Pengerang', 'Plentong', 'Pontian', 'Rengam', 'Rengit', 'Segamat', 'Semerah', 'Senai', 'Senggarang', 'Seri Gadang', 'Simpang Rengam', 'Skudai', 'Sungai Mati', 'Tampoi', 'Tangkak', 'Ulu Tiram', 'Yong Peng'),
			2=>array('Ayer Baloi','Ayer Hitam', 'Bakri', 'Batu Anam', 'Batu Pahat', 'Bekok', 'Benut', 'Bukit Gambir', 'Bukit Pasir', 'Chaah', 'Endau', 'Gelang Patah', 'Gerisek', 'Gugusan Taib Andak', 'Jementah', 'Johor Bahru', 'Kahang', 'Kampung Kenangan Tun Dr Ismail', 'Kluang', 'Kota Tinggi', 'Kukup', 'Kulai', 'Labis', 'Layang Layang', 'Masai', 'Mersing', 'Muar', 'Pagoh', 'Paloh', 'Panchor', 'Parit Jawa', 'Parit Raja', 'Parit Sulong', 'Pasir Gudang', 'Pekan Nanas', 'Pengerang', 'Plentong', 'Pontian', 'Rengam', 'Rengit', 'Segamat', 'Semerah', 'Senai', 'Senggarang', 'Seri Gadang', 'Simpang Rengam', 'Skudai', 'Sungai Mati', 'Tampoi', 'Tangkak', 'Ulu Tiram', 'Yong Peng'),
			3=>array('Alor Setar', 'Ayer Hitam', 'Baling', 'Bandar Baharu', 'Bedong', 'Bukit Kayu Hitam', 'Guar Chempedak', 'Gurun', 'Jitra', 'Karangan', 'Kepala Batas', 'Kodiang', 'Kota Sarang Semut', 'Kuala Kedah', 'Kuala Ketil', 'Kuala Muda', 'Kuala Nerang', 'Kubang Pasu', 'Kulim', 'Kupang', 'Langgar', 'Langgar', 'Lunas', 'Merbok', 'Padang Serai', 'Padang Terap', 'Pendang', 'Pokok Sena', 'Pulau Langkawi', 'Serdang', 'Sik', 'Simpang Empat', 'Sungai Petani', 'Univesity Utara', 'Yan'),
			4=>array('Ayer Lanas', 'Bachok', 'Cherang Ruku', 'Dabong', 'Gua Musang', 'Jeli', 'Kem Desa Pahwalan', 'Ketereh', 'Kota Bharu', 'Kuala Balah', 'Kuala Kerai', 'Machang', 'Melor', 'Pasir Mas', 'Pasir Puteh', 'Pulai Chondong', 'Rantau Panjang', 'Selising', 'Tanah Merah', 'Tawang', 'Temangan', 'Tumpat', 'Wakaf Baru'),
			5=>array('Alor Gajah', 'Asahan', 'Ayer Keroh', 'Bandar Hilir', 'Batu Berendam', 'Bemban', 'Bukit Beruam', 'Durian Tunggal', 'Jasin', 'Kuala Linggi', 'Kuala Sungai Baru', 'Lubok China', 'Masjid Tanah', 'Melaka Tengah', 'Merlimau', 'Selandar', 'Sungai Rambai', 'Sungai Udang', 'Tanjong Kling', 'Ujong Pasir'),
			6=>array('Bahau', 'Bandar Baru Serting', 'Batang Melaka', 'Batu Kikir', 'Gemas', 'Gemencheh', 'Jelebu', 'Jempol', 'Johol', 'Juasseh', 'Kota', 'Kuala Klawang', 'Kuala Pilah', 'Labu', 'Lenggeng', 'Linggi', 'Mantin', 'Nilai', 'Pasir Panjang', 'Pedas', 'Port Dickson', 'Rantau', 'Rembau', 'Rompin', 'Senawang', 'Seremban', 'Siliau', 'Simpang Durian', 'Simpang Pertang', 'Sri Menanti', 'Sri Rusa', 'Tampin', 'Tanjong Ipoh'),
			7=>array(),
			8=>array('Balok', 'Bandar Pusat Jengka', 'Bandar Tun Abdul Razak', 'Benta', 'Bentong', 'Bera', 'Brinchang', 'Bukit Fraser', 'Cameron Highlands', 'Chenor', 'Daerah Rompin', 'Damak', 'Dong', 'Genting Highlands', 'Jerantut', 'Karak', 'Kuala Lipis', 'Kuala Rompin', 'Kuantan', 'Lanchang', 'Lurah Bilut', 'Maran', 'Mengkarak', 'Mentakab', 'Muadzam Shah', 'Padang Tengku', 'Pekan', 'Raub', 'Ringlet', 'Rompin', 'Sega', 'Sungai Koyan', 'Sungai Lembing', 'Sungai Ruan', 'Tanah Rata', 'Temerloh', 'Triang'),
			9=>array('Air Tawar', 'Alma', 'Ayer Itam', 'Bagan Ajam', 'Bagan Jermal', 'Bagan Lallang', 'Balik Pulau', 'Bandar Perda', 'Batu Feringgi', 'Batu Kawan', 'Batu Maung', 'Batu Uban', 'Bayan Baru', 'Bayan Lepas', 'Berapit', 'Bertam', 'Bukit Dumbar', 'Bukit Jambul', 'Bukit Mertajam', 'Bukit Minyak', 'Bukit Tambun', 'Bukit Tengah', 'Butterworth', 'Gelugor', 'Georgetown', 'Gertak Sangul', 'Greenlane', 'Jawi', 'Jelutong', 'Juru', 'Kepala Batas', 'Kubang Semang', 'Mak Mandin', 'Minden Heights', 'Nibong Tebal', 'Pauh Jaya', 'Paya Terubong', 'Penaga', 'Penang Hill', 'Penanti', 'Perai', 'Permatang Kuching', 'Permatang Pauh', 'Permatang Tinggi', 'Persiaran Gurney', 'Prai', 'Pulau Betong', 'Pulau Tikus', 'Raja Uda', 'Relau', 'Scotland', 'Seberang Jaya', 'Seberang Perai', 'Serdang', 'Simpang Ampat', 'Sungai Ara', 'Sungai Bakap', 'Sungai Dua', 'Sungai Jawi', 'Sungai Nibong', 'Sungai Pinang', 'Tanjong Tokong', 'Tanjung Bungah', 'Tasek Gelugor', 'Teluk Bahang', 'Teluk Kumbar', 'USM', 'Valdor'),
			10=>array('Ayer Tawar', 'Bagan Datoh', 'Bagan Serai', 'Batu Gajah', 'Batu Kurau', 'Behrang Stesen', 'Beruas', 'Bidor', 'Bota', 'Changkat Jering', 'Changkat Keruing', 'Chemor', 'Chenderiang', 'Chenderong Balai', 'Chikus', 'Enggor', 'Gerik', 'Gopeng', 'Hutan Melintang', 'Intan', 'Ipoh', 'Jeram', 'Kampar', 'Kampong Gajah', 'Kampong Kepayang', 'Kamunting', 'Kuala Kangsar', 'Kuala Kurau', 'Kuala Sepetang', 'Lahat', 'Lambor Kanan', 'Langkap', 'Lenggong', 'Lumut', 'Malim Nawar', 'Mambang Diawan', 'Manong', 'Matang', 'Menglembu', 'Padang Rengas', 'Pangkor', 'Pantai Remis', 'Parit', 'Parit Buntar', 'Pengkalan Hulu', 'Pusing', 'Rantau Panjang', 'Sauk', 'Selama', 'Selekoh', 'Selinsing', 'Semanggol', 'Seri Manjong', 'Simpang', 'Sitiawan', 'Slim River', 'Sungai Siput', 'Sungai Sumun', 'Sungkai', 'Taiping', 'Tanjong Piandang', 'Tanjong Rambutan', 'Tanjong Tualang', 'Tanjung Malim', 'Tapah', 'Teluk Intan', 'Temoh', 'TLDM Lumut', 'Trolak', 'Trong', 'Ulu Bernam', 'Ulu Kinta'),
			11=>array('Arau', 'Kaki Bukit', 'Kangar', 'Kuala Perlis', 'Padang Besar', 'Pauh', 'Simpang Ampat'),
			12=>array('Cyberjaya', 'Putrajaya'),
			13=>array('Beaufort', 'Beluran', 'Bongawan', 'Keningau', 'Kota Belud', 'Kota Kinabalu', 'Kota Kinabatangan', 'Kota Marudu', 'Kuala Penyu', 'Kudat', 'Kunak', 'Lahad Datu', 'Likas', 'Membakut', 'Menumbok', 'Nabawan', 'Pamol', 'Papar', 'Penampang', 'Pitas', 'Pulatan', 'Ranau', 'Sandakan', 'Semporna', 'Sipitang', 'Tambunan', 'Tamparuli', 'Tawau', 'Tenom', 'Tuaran'),
			14=>array('Asajaya', 'Balingian', 'Baram', 'Bau', 'Bekenu', 'Belaga', 'Belawai', 'Betong', 'Bintagor', 'Bintulu', 'Dalat', 'Daro', 'Debak', 'Engkilili', 'Julau', 'Kabong', 'Kanowit', 'Kapit', 'Kota Samarahan', 'Kuching', 'Lawas', 'Limbang', 'Lingga', 'Long Lama', 'Lubok Antu', 'Lundu', 'Lutong', 'Maradong', 'Marudi', 'Matu', 'Miri', 'Mukah', 'Nanga Medamit', 'Niah', 'Pusa', 'Roban', 'Saratok', 'Sarikei', 'Sebauh', 'Sebuyau', 'Serian', 'Sibu', 'Simunjan', 'Song', 'Spaoh', 'Sri Aman', 'Sundar', 'Tanjung Kidurong', 'Tatau'),
			15=>array('Ampang', 'Ara Damansara', 'Balakong', 'Bandar Bukit Raja', 'Bandar Kinrara', 'Bandar Puteri', 'Bandar Sunway', 'Bandar Utama', 'Bangi', 'Banting', 'Batang Berjuntai', 'Batang Kali', 'Batu Arang', 'Batu Caves', 'Beranang', 'Bukit Rotan', 'Cheras', 'Country Heights', 'Cyberjaya', 'Damansara Damai', 'Damansara Intan', 'Damansara Jaya', 'Damansara Kim', 'Damansara Perdana', 'Damansara Utama', 'Dengkil', 'Glenmarie', 'Hulu Langat', 'Hulu Selangor', 'Jenjarom', 'Kajang', 'Kapar', 'Kayu Ara', 'Kelana Jaya', 'Kerling', 'Klang', 'Kota Damansara', 'Kota Kemuning', 'Kuala Kubu Baru', 'Kuala Langat', 'Kuala Selangor', 'Kuang', 'Mutiara Damansara', 'Nilai', 'Petaling Jaya', 'Port Klang', 'Puchong', 'Pulau  Indah ( Pulau Lumut)', 'Pulau Carey', 'Pulau Ketam', 'Puncak Jalil', 'Putra Heights', 'Putrajaya', 'Rasa', 'Rawang', 'Sabak Bernam', 'Saujana', 'Sekinchan', 'Selayang', 'Semenyih', 'Sepang', 'Serdang', 'Serendah', 'Seri Kembangan', 'Setia Alam', 'Setia Eco Park', 'Shah Alam', 'SierraMas', 'Sri Damansara', 'SS2', 'Subang Heights', 'Subang Jaya', 'Sungai Ayer Tawar', 'Sungai Besar', 'Sungai Buloh', 'Sungai Pelek', 'Tanjong Karang', 'Tanjong Sepat', 'Telok Panglima Garang', 'Tropicana', '"Ulu Klang', 'USJ', 'Valencia'),
			16=>array('Besut', 'Dungun', 'Hulu Terengganu', 'Kemaman', 'Kuala Terengganu', 'Marang', 'Setiu')
			);
$price_list["200000"] = "S$ 200,000";
$price_list["300000"] = "S$ 300,000";
$price_list["400000"] = "S$ 400,000";
$price_list["500000"] = "S$ 500,000";
$price_list["600000"] = "S$ 600,000";
$price_list["700000"] = "S$ 700,000";
$price_list["800000"] = "S$ 800,000";
$price_list["900000"] = "S$ 900,000";
$price_list["1000000"] = "S$ 1,000,000";
$price_list["1250000"] = "S$ 1,250,000";
$price_list["1500000"] = "S$ 1,500,000";
$price_list["2000000"] = "S$ 2,000,000";
$price_list["2500000"] = "S$ 2,500,000";
$price_list["3000000"] = "S$ 3,000,000";
$price_list["4000000"] = "S$ 4,000,000";
$price_list["5000000"] = "S$ 5,000,000";
$price_list["6000000"] = "S$ 6,000,000";
$price_list["8000000"] = "S$ 8,000,000";
$price_list["10000000"] = "S$ 10,000,000";
$price_list["15000000"] = "S$ 15,000,000";
$price_list["20000000"] = "S$ 20,000,000";
$price_list["30000000"] = "S$ 30,000,000";
$price_list["50000000"] = "S$ 50,000,000";	

$price_rent["500"] = "S$ 500";
$price_rent["1000"] = "S$ 1,000";
$price_rent["1500"] = "S$ 1,500";
$price_rent["2000"] = "S$ 2,000";
$price_rent["2500"] = "S$ 2,500";
$price_rent["3000"] = "S$ 3,000";
$price_rent["3500"] = "S$ 3,500";
$price_rent["4000"] = "S$ 4,000";
$price_rent["4500"] = "S$ 4,500";
$price_rent["5000"] = "S$ 5,000";
$price_rent["5500"] = "S$ 5,500";
$price_rent["6000"] = "S$ 6,000";
$price_rent["6500"] = "S$ 6,500";
$price_rent["7000"] = "S$ 7,000";
$price_rent["7500"] = "S$ 7,500";
$price_rent["8000"] = "S$ 8,000";
$price_rent["8500"] = "S$ 8,500";
$price_rent["9000"] = "S$ 9,000";
$price_rent["9500"] = "S$ 9,500";
$price_rent["10000"] = "S$ 10,000";
$price_rent["10500"] = "S$ 10,500";
$price_rent["11000"] = "S$ 11,000";		
$price_rent["12000"] = "S$ 12,000";	
$price_rent["13000"] = "S$ 13,000";
$price_rent["14000"] = "S$ 14,000";
$price_rent["15000"] = "S$ 15,000";
$price_rent["16000"] = "S$ 16,000";
$price_rent["17000"] = "S$ 17,000";
$price_rent["18000"] = "S$ 18,000";
$price_rent["19000"] = "S$ 19,000";
$price_rent["20000"] = "S$ 20,000";

$floor_list[500] = "500 sqft (46 sqm)";
$floor_list[750] = "750 sqft (70 sqm)";
$floor_list[1000] = "1,000 sqft (93 sqm)";
$floor_list[1200] = "1,200 sqft (112 sqm)";
$floor_list[1500] = "1,500 sqft (139 sqm)";
$floor_list[2000] = "2,000 sqft (186 sqm)";
$floor_list[2500] = "2,500 sqft (232 sqm)";
$floor_list[3000] = "3,000 sqft (279 sqm)";
$floor_list[4000] = "4,000 sqft (372 sqm)";
$floor_list[5000] = "5,000 sqft (465 sqm)";
$floor_list[7500] = "7,500 sqft (697 sqm)";
$floor_list[10000] = "10,000 sqft (929 sqm)";

$bedroom_list[0] = "Studio";
$bedroom_list[1] = "1 Bedroom";
$bedroom_list[2] = "2 Bedrooms";
$bedroom_list[3] = "3 Bedrooms";
$bedroom_list[4] = "4 Bedrooms";
$bedroom_list[5] = "5 Bedrooms";
$bedroom_list[6] = "6 Bedrooms";
$bedroom_list[7] = "7 Bedrooms";
$bedroom_list[8] = "8 Bedrooms";
$bedroom_list[9] = "9 Bedrooms";
$bedroom_list[10] = "+10 Bedrooms";		

$tenure["0"] = "- Select one -";
$tenure["1"] = "15 years";
$tenure["2"] = "30 years";
$tenure["3"] = "60 years";
$tenure["4"] = "90 years";
$tenure["5"] = "99 years ";
$tenure["6"] = "103 years";
$tenure["7"] = "929 years";
$tenure["8"] = "946 years";
$tenure["9"] = "956 years";
$tenure["10"] = "999 years";
$tenure["11"] = "Freehold";

$furnished[0]="not Furnished"; 
$furnished[1]="Partially furnished"; 
$furnished[2]="Fully Furnished"; 


?>